<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>测试锚点</title>
</head>
<body>
    <a name="yilou"></a>
    <div style="height:80vh;background:green"></div>
    <div style="height:80vh;background:red"></div>
    <a name="#sanlou"></a>
    <div style="height:80vh;background:black"></div>
    <div style="height:80vh;background:brown"></div>
    <div style="height:80vh;background:pink"></div>
    <a href="?a=sanlou">上电梯</a>
    <a href="?a=yilou">上一楼</a>
</body>
</html>